<?php
require_once( 'macro.php' );
if($userId>0){
	$users = getMultiple( 'user', "userId||$userId", "userStatus||verified");
	if($users->getResultCount()>0){
		$template->message = "";
		$template->messageClass = "";	
		/* navigation */
		$navArray[1]['parent']['class'] = 'active';
		$navArray[1]['child'][2]['class'] = 'active';
		$template->navArray = $navArray;
	
		$videoType = array();
		for($i=0;$i<5;$i++){
			$videoType[$i]['videoType'] = "Video Type ".$i;
		}
		$template->videoType = $videoType;
	}
}

/* relatedShow */
$relatedShow = array();
$relatedShow[0]['name'] = 'relatedShow1';
$relatedShow[1]['name'] = 'relatedShow2';
$template->relatedShow = $relatedShow;

/* relatedShow */
$relatedCharacters = array();
$relatedCharacters[0]['name'] = 'relatedShow1';
$relatedCharacters[1]['name'] = 'relatedShow2';
$template->relatedCharacters = $relatedCharacters;

/* $relatedCategory */
$relatedCategory = array();
$relatedCategory[0]['name'] = 'relatedShow1';
$relatedCategory[1]['name'] = 'relatedShow2';
$template->relatedCategory = $relatedCategory;



//	$category = getSingle( 'category', 'add' );
//	$categoryDb->set( 'categoryName||Top Charts', 'categorySlug||category-slug' );
//	echo $categoryDb->getLastInsertedId();
//	exit;
//	$category = getSingle( 'category', 1 );
//	echo $categoryDb->getLastInsertedId();
//	exit;
//	$categories = getMultiple( 'category', 'quantity||10', 'categoryStatus||active' );
//	foreach( $categories() as $category )
//	echo $category->getCategoryName();
